<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// |  Author: Dreamy <294207330@qq.com> 
// +----------------------------------------------------------------------

namespace Home\Controller; 
/**
 * 前台首页控制器
 * 主要获取首页聚合数据
 * $url= $_SERVER[HTTP_HOST]; //获取当前域名  
 * 主要负责APP中一部分页面的WAP端展示
 */
class UserController extends HomeController
{
    
    /**
     * 初始化方法 登录检测 
     * @return [type] [description]
     */
    public function _initialize(){
        //$this->check_login();
    }

    /**
     * 退出登录 
     * @return [type] [description]
     */
    public function logout(){  
        session('user_auth',bull) ; 
        session_destroy() ; 
        redirect('Home/index/index');
    }
}